package fivm.cross.platform.steamobj.sys;


import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import fivm.cross.platform.ficommon.distinguish.GsonSimpleSerializable;

/**
 * Created by Administrator on 2016/5/27.
 * 心跳包的回复数据格式
 *
 */
public class HeartBeatResponseStream extends GsonSimpleSerializable {
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    public final static HeartBeatResponseStream HeartBeatResponseStream_Undo=new HeartBeatResponseStream(HeartBeatResponseStream.HEARTBEAT_ACTION_UNDO);
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    public final static int HEARTBEAT_ACTION_UNKNOWN=-1;            //未知
    public final static int HEARTBEAT_ACTION_UNDO=1000;             //什么事都不做
    public final static int HEARTBEAT_ACTION_REBOOT=0;              //重启设备
    public final static int HEARTBEAT_ACTION_CLEAN_VM=1;            //清除整个虚拟机系统的注入
    public final static int HEARTBEAT_ACTION_RESTART_DVLK=2;        //重启root后门
    public final static int HEARTBEAT_ACTION_RESTART_ZYGOTE=3;      //重启zygote

    public final static int HEARTBEAT_ACTION_KILL_APP_TASK=4;       //关掉app的用例例程
    public final static int HEARTBEAT_ACTION_STARTUP_APP=5;         //重启app的用例例程





    @Expose @SerializedName("Action")//发心跳包的时间间隔
    private int action=HEARTBEAT_ACTION_UNDO;
    @Expose @SerializedName("DeviceSerialNum")//发心跳包的时间间隔
    private String deviceSerialNum="";

    public HeartBeatResponseStream( ){
    }
    public HeartBeatResponseStream(int action){
        this.action=action;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }


    public String getDeviceSerialNum() {
        return deviceSerialNum;
    }

    public void setDeviceSerialNum(String deviceSerialNum) {
        this.deviceSerialNum = deviceSerialNum;
    }
}
